package sap.jco.client;

import java.io.IOException;

import com.tis.utilitys.PropertiesUtility;

public class SAPClientInfo {	
	public static String ABAP_AS = "ABAP_AS_WITHOUT_POOL";
    public static String ABAP_AS_POOLED = "ABAP_AS_WITH_POOL";
    public static String ABAP_MS = "ABAP_MS_WITHOUT_POOL";
    
    /**
     * 
     * Date =Nov 19, 2013 : 3:46:49 PM 
     * CreateBy=Chatree Siangklom
     * String
     * TODO
     * @return
     */
    public static String JcoAsHost() {
		try {
			return  new PropertiesUtility().GetSapConfigValue("sap.client.jco_ashost");
		} catch (IOException e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}
    
    public static String JcoSysNr() {
		try {
			return  new PropertiesUtility().GetSapConfigValue("sap.client.jco_sysnr");
		} catch (IOException e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}
    
    public static String JcoClient() {
    	try {
    		return  new PropertiesUtility().GetSapConfigValue("sap.client.jco_client");
    	} catch (IOException e) {
    		e.printStackTrace();
    	} catch (Exception e) {
    		e.printStackTrace();
    	}
    	return null;
    }
    
    public static String JcoUser() {
    	try {
    		return  new PropertiesUtility().GetSapConfigValue("sap.client.jco_user");
    	} catch (IOException e) {
    		e.printStackTrace();
    	} catch (Exception e) {
    		e.printStackTrace();
    	}
    	return null;
    }
    
    public static String JcoPasswd() {
    	try {
    		return  new PropertiesUtility().GetSapConfigValue("sap.client.jco_passwd");
    	} catch (IOException e) {
    		e.printStackTrace();
    	} catch (Exception e) {
    		e.printStackTrace();
    	}
    	return null;
    }
    
    public static String JcoLang() {
    	try {
    		return  new PropertiesUtility().GetSapConfigValue("sap.client.jco_lang");
    	} catch (IOException e) {
    		e.printStackTrace();
    	} catch (Exception e) {
    		e.printStackTrace();
    	}
    	return null;
    }
    
    public static String JcoPoolCapacity() {
    	try {
    		return  new PropertiesUtility().GetSapConfigValue("sap.client.jco_pool_capacity");
    	} catch (IOException e) {
    		e.printStackTrace();
    	} catch (Exception e) {
    		e.printStackTrace();
    	}
    	return null;
    }
    
    public static String JcoPeakLimit() {
    	try {
    		return  new PropertiesUtility().GetSapConfigValue("sap.client.jco_peak_limit");
    	} catch (IOException e) {
    		e.printStackTrace();
    	} catch (Exception e) {
    		e.printStackTrace();
    	}
    	return null;
    }
    
    
//  Dev
//	public static final String JCO_ASHOST = "192.168.2.44"; //SPLECC6DEV01
//	public static final String JCO_SYSNR = "81";
//	public static final String JCO_CLIENT = "130";
//	public static final String JCO_USER = "ZPROMISBAPI";
//	public static final String JCO_PASSWD = "webpromis";
//	public static final String JCO_LANG = "en";
//	public static final String JCO_POOL_CAPACITY = "6";
//	public static final String JCO_PEAK_LIMIT = "20";
	
//	QAS 
//	public static final String JCO_ASHOST = "192.168.2.45"; //SPLECC6DEV01
//	public static final String JCO_SYSNR = "71";
//	public static final String JCO_CLIENT = "210";
//	public static final String JCO_USER = "ZPROMISBAPI";
//	public static final String JCO_PASSWD = "webpromis";
//	public static final String JCO_LANG = "EN";
//	public static final String JCO_POOL_CAPACITY = "20";
//	public static final String JCO_PEAK_LIMIT = "20";
    
   
//	NEW QAS 2012-09-03
//  public static final String JCO_ASHOST = "192.168.2.45"; //SPLECC6DEV01
//	public static final String JCO_SYSNR = "71";
//	public static final String JCO_CLIENT = "220";
//	public static final String JCO_USER = "SPL00CPC01";
//	public static final String JCO_PASSWD = "webpromis";
//	public static final String JCO_LANG = "EN";
//	public static final String JCO_POOL_CAPACITY = "20";
//	public static final String JCO_PEAK_LIMIT = "20";
	
//  PROD
//  public static final String JCO_ASHOST = "192.168.2.43"; //SPLECC6DEV01
//  public static final String JCO_USER = "SPL00CPC01";
//	public static final String JCO_PASSWD = "webpromis";
//	public static final String JCO_LANG = "EN";
//	public static final String JCO_SYSNR = "31";
//	public static final String JCO_CLIENT = "900";
//	public static final String JCO_POOL_CAPACITY = "50";
//	public static final String JCO_PEAK_LIMIT = "100";
	
//	NEW PROD
//	public static final String JCO_ASHOST = "192.168.2.40"; //SPLECC6DEV01
//  public static final String JCO_USER = "SPL00CPC01";
//	public static final String JCO_PASSWD = "webpromis";
//	public static final String JCO_LANG = "EN";
//	public static final String JCO_SYSNR = "31";
//	public static final String JCO_CLIENT = "900";
//	public static final String JCO_POOL_CAPACITY = "50";
//	public static final String JCO_PEAK_LIMIT = "100";

}
